import requests


class LoginApi(object):

    @classmethod
    def login(cls, body):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        headers = {"Content-Type": "application/json"}

        # 发送请求
        response = requests.post(url=url, headers=headers, json=body)
        return response